/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.mts.client.listener;


import com.google.common.eventbus.Subscribe;
import com.intelligent.mts.client.core.view.MainSearchPanel;
import com.intelligent.mts.client.event.ResearchDataEvent;
import com.intelligent.mts.client.utils.ApplicationBeanUtils;

/**
 * Created by Peter on 2016/7/26.
 */
public class SearchDataListener {
    @Subscribe
    public void receivedMsg(ResearchDataEvent event) {
        researchAllData(event);
    }

    private void researchAllData(ResearchDataEvent event) {
        String sn = event.getSn();
        if(sn == null) {
        }
        ApplicationBeanUtils.getBean(MainSearchPanel.class).searchData(sn);
    }
}
